VR10SLnToAsc

V = Variables

R = Reading functions

SIGNED LONG —→ ASCII

The VR10SLnToAsc function converts a Signed Long variable type (long with sign) in an ascii variable type.

IMPLEMENTATION

VR10SLnToAsc (value, index, array, errcode)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN GLOBAL value L Data value to convert
IN GLOBAL index L Index of the array element to start the “deposit” of the converted data
OUT ARRGBL array B Array containing the converted data (must be declared with at least “index + 7” elements)
OUT GLOBAL errcode F Variable that indicates a possible error on function

Errcode

After calling the function, 'errcode' can take certain values, the meaning of these values is summarized below:
0: No error

Esempio

Trasforma il valore 80000 (signed long) in un valore Ascii

value = 80000
index = 1
 
VR10SLnToAsc (value, index, array, errcode)
 
;Sull'array si troverà :
; array[1] = 48
; array[2] = 48
; array[3] = 48
; array[4] = 49
; array[5] = 51
; array[6] = 56
; array[7] = 56
; array[8] = 48		(13880 h)

Note